<template>
  <div class="form-dialog__subtitle" :class="props.border ? 'form-dialog__subtitle--border' : ''">
    <span class="dialog-subtitle__text">{{ props.title }}</span>
    <slot name="right"></slot>
  </div>
</template>
<script lang="ts">
export default {
  name: 'SubTitle'
};
</script>
<script lang="ts" setup>
import { defineProps } from 'vue';
interface SubTitleProps {
  title: string;
  border?: boolean;
}
const props = defineProps<SubTitleProps>();
</script>
<style lang="scss" scoped>
.form-dialog__subtitle {
  width: 100%;
  height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  &.form-dialog__subtitle--border {
    border-top: 1px solid #f2f3f5;
  }
  .dialog-subtitle__text {
    font-family: PingFangSC, PingFang SC;
    font-weight: 600;
    font-size: 14px;
    color: #0a1f33;
    line-height: 22px;
    text-align: left;
    font-style: normal;
  }
}
</style>
